package com.tsingteng.cosfun.ui.message.systemnotification;

import android.content.Context;
import android.graphics.Color;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;

import com.tsingteng.cosfun.common.Navigate;
import com.tsingteng.cosfun.http.Url;

public class SystemSunSpan extends ClickableSpan{
   private String mStr;
    private Context context;
    private long id;
    public SystemSunSpan(Context context, String msg, long id){
        this.context = context;
        this.id = id;
        this.mStr=msg;
    }
    @Override
    public void onClick(View view) {
        Navigate.gotoSunActivity(context,id);
    }

    @Override
    public void updateDrawState(TextPaint ds) {
        ds.setColor(Color.parseColor("#42DAD7"));
    }
}
